Add CI for build, broken-link checks, and content validation#31
Merged
Conversation
GitHub Actions runs Docusaurus build (with broken-link checks), frontmatter validation, and e2e/visual regression on PRs and pushes to master. Co-authored-by: Cursor <cursoragent@cursor.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
setup-node's yarn cache runs Yarn 1.x before Corepack is enabled; install Node first, enable Corepack, then cache node_modules. Co-authored-by: Cursor <cursoragent@cursor.com>
Run visual regression on Desktop Chrome and Pixel 7, with per-project snapshot baselines and simplified CI e2e job. Co-authored-by: Cursor <cursoragent@cursor.com>
There was a problem hiding this comment.
Pull request overview
Adds CI coverage for validating blog content, building the Docusaurus site, and running Playwright smoke/visual regression tests.
Changes:
- Adds a GitHub Actions CI workflow for build/content validation and e2e/visual test jobs.
- Adds a blog frontmatter validation script and package scripts.
- Adds Playwright configuration, tests, dependencies, and generated-output ignores.
Reviewed changes
Copilot reviewed 5 out of 12 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/ci.yml |
Defines build/content validation and Playwright CI jobs. |
.gitignore |
Ignores Playwright-generated reports/results. |
e2e/site.spec.ts |
Adds smoke and visual regression tests for homepage and a blog post. |
package.json |
Adds validation/test scripts and Playwright/YAML dev dependencies. |
playwright.config.ts |
Configures Playwright projects, snapshots, and Docusaurus static server. |
scripts/validate-content.mjs |
Adds blog frontmatter validation logic. |
yarn.lock |
Locks newly added dependencies. |
Comments suppressed due to low confidence (1)
scripts/validate-content.mjs:101
- This truthiness check lets
tags: false(or other falsy non-array values) pass validation even though tags are required to be an array. Validate the type whenever the field is present, rather than only when the value is truthy.
if (frontmatter.tags && !Array.isArray(frontmatter.tags)) {
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| } | ||
| } | ||
|
|
||
| if (frontmatter.slug && typeof frontmatter.slug !== 'string') { |
Copilot stopped work on behalf of
jacobra19 due to an error
May 19, 2026 11:51
Switch from element screenshots of main to viewport screenshots so baselines are not sensitive to page content height. Add font stabilization, block service workers for gtag, and raise maxDiffPixelRatio to 0.05 for cross-platform rendering tolerance. Add workflow_dispatch workflow to regenerate snapshots on ubuntu-latest. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
masterand on pull requests.onBrokenLinks: 'throw'.Closes #26
Test plan
yarn validate:contentpasses locallyyarn buildpasses locallyCI=1 yarn test:e2epasses locally afteryarn buildMade with Cursor